package com.naizhuai.util;

import android.graphics.drawable.Drawable;

import com.naizhuai.ui.components.ColorGenerator;
import com.naizhuai.ui.components.TextDrawable;

/**
 * @author：lichenxi
 * @date 2018/3/8 13
 * email：525603977@qq.com
 * Fighting
 */
public class DrawableUtils {
    public static Drawable setTextDrawable(String name) {
        String splitName=Strings.firstName(name);
        return TextDrawable.builder()
                .buildRound(splitName, ColorGenerator.MATERIAL.getColor(name));
    }
}
